package cn.easyutil.util.javaUtil.http;

import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;

public class HttpFileReq {

    private String paramName;
    private byte[] content;
    private String fileName;

    public String getParamName() {
        return paramName;
    }

    public void setParamName(String paramName) {
        try {
            paramName = URLEncoder.encode(paramName, "utf-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        this.paramName = paramName;
    }

    public byte[] getContent() {
        return content;
    }

    public void setContent(byte[] content) {
        this.content = content;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        try {
            fileName = URLEncoder.encode(fileName, "utf-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        this.fileName = fileName;
    }
}
